package br.com.trabalho4.main;

import java.awt.Color;
import java.util.ArrayList;
import java.util.List;

import br.com.trabalho4.controller.Controller;
import br.com.trabalho4.model.shape.ConvexShape;
import br.com.trabalho4.model.shape.Point;
import br.com.trabalho4.view.MainWindow;

public class Main {
	
	public static void main(String[] args) {
		MainWindow mainWindow = new MainWindow();
		Controller controller = new Controller(mainWindow);
		
//		Point s1 = new Point(15, 10, new Color(0,255,0));
//		Point s2 = new Point(20, 10, new Color(0,255,0));
//		Point s3 = new Point(15, 20, new Color(0,255,0));
//		
//		List<Point> l = new ArrayList<Point>();
//		l.add(s1); l.add(s2); l.add(s3);
//		ConvexShape c = new ConvexShape(l);
//		
//		controller.addShape(c);
		
//		controller.addShape(new Line(s1, s2));
//		controller.addShape(new Line(s2, s3));
//		controller.addShape(new Line(s3, s1));
		
//		controller.addShape(s1);
//		controller.addShape(s2);
//		controller.addShape(s3);
		
		mainWindow.getJPaintPanel().repaint();
	}

}
